			<h1 id="sidebar-title"><a href="<?php echo $this->_var['site_url']; ?>">唔！点餐</a></h1>
		  
			
			<a href="<?php echo $this->_var['site_url']; ?>"><img id="logo" src="template/resources/images/logo.png" alt="Simpla Admin logo" /></a>
		  
			
			<div id="profile-links">
				您好, <a href="#" title="Edit your profile"><font color="red"><?php echo $this->_var['admin_name']; ?></font></a><?php if ($this->_var['message']): ?>, 您有 <a href="#messages" rel="modal" title="3 Messages"><?php echo $this->_var['message']; ?>条消息<?php endif; ?></a><br />
				<br />
				<a href="<?php echo $this->_var['site_url']; ?>" title="View the Site">查看站点</a> | <a href="?app=login&act=logout" title="Sign Out">退出</a>
			</div>     

<ul id="main-nav">  				
				<?php $_from = $this->_var['nav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('name', 'child');if (count($_from)):
    foreach ($_from AS $this->_var['name'] => $this->_var['child']):
?>
				<li> 
					<a href="#" class="nav-top-item<?php if ($this->_var['app'] == $this->_var['name']): ?> current<?php endif; ?>"> 
					<?php echo $this->_var['lang'][$this->_var['name']]; ?>
					</a>
					<ul>
					<?php $_from = $this->_var['child']['child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('title', 'url');if (count($_from)):
    foreach ($_from AS $this->_var['title'] => $this->_var['url']):
?>
						<li><a href="<?php echo $this->_var['url']; ?>"><?php echo $this->_var['lang'][$this->_var['title']]; ?></a></li>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					</ul>
				</li>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul> 